package jiChen;

public class Cat extends Animal{
    @Override
    public void method() {
        super.method();
        System.out.println("CAt重写后新增的方法");

    }
    //子类必须重写父类的抽象类
    @Override
    public void eat(String food) {
        System.out.println("🐱吃"+food);

    }
}
